package cn.reineko.csmall.passport.ex;

/**
 * 业务类异常
 *
 * @author reineko
 * @version 1.0.0
 */
public class ServiceException extends RuntimeException{

    private ServiceCode serviceCode; // 业务状态码的枚举

    public ServiceException(ServiceCode serviceCode, String message) {
        super(message);
        this.serviceCode = serviceCode;
    }

    public ServiceCode getServiceCode() {
        return serviceCode;
    }

}
